package edu.kjxy.demo0408;

public class PersonDemo {
	public static void main(String[] args) {
		
		//类名 对象变量名 = new 构造函数();
		Person p1 = new Person();
		p1.name = "王二麻子";
		p1.eat("旺旺饼干");
		System.out.println(p1);
		
		Person p2 = new Person("666", "张三丰", "2022-02-02", "男");
		p2.eat("苹果");
		System.out.println(p2);
	}
}
